package com.ym.b2b.news.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.news.sqlbean.EmBNews;
import com.zc.commons.base.Page;

public interface EmBNewsDAO {

    public Long searchPageEmBNewsNum(EmBNews embnews) throws DataAccessException;

    public Page<EmBNews> searchPageEmBNews(EmBNews embnews, Page<EmBNews> page) throws DataAccessException;

    public Page<EmBNews> searchMobilePageEmBNews(EmBNews embnews, Page<EmBNews> page) throws DataAccessException;

    void insertEmBNews(EmBNews record) throws DataAccessException;

    int updateEmBNews(EmBNews record) throws DataAccessException;

    EmBNews searchEmBNews(Long newsId) throws DataAccessException;

    int deleteEmBNews(Long newsId) throws DataAccessException;

    public int deleteMultipleEmBNews(String newsIdList);

    public void updateEmBNewsBat(EmBNews emBNews) throws DataAccessException;

    /**
     * @Title: searchSimpleNewsList
     * @Description: 获取简洁 新闻列表
     * @Param @param emBNews
     */
    List<EmBNews> searchSimpleNewsList(EmBNews emBNews) throws DataAccessException;

}
